package com.silverbox.shopper.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.CupboardOrderRecord;

public interface CupboardOrderRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CupboardOrderRecord record);

    int insertSelective(CupboardOrderRecord record);

    CupboardOrderRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CupboardOrderRecord record);

    int updateByPrimaryKey(CupboardOrderRecord record);

    /**
     * 获取在线订单取餐柜信息根据orderNum
     * @param orderNum
     * @return
     */
	List<CupboardOrderRecord> getOnlineMealRecordByNum(CupboardOrderRecord orderRecord);

	/**
	 * 获取订单单个菜品取餐柜状态
	 * @param orderNum
	 * @param itemId
	 * @return
	 */
	List<CupboardOrderRecord> getCupboardGoodsStatus(@Param("orderNum") String orderNum, @Param("itemId") Long itemId,@Param("createTime")Date createTime);
}